﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace Reporter.Controls
{
    /// <summary>
    /// Interaction logic for CircularPercentualProgressBar.xaml
    /// </summary>
    public partial class CircularPercentualProgressBar : UserControl
    {
        public int FinishedPercentage
        {
            get { return (int)this.GetValue(FinishedPercentageProperty); }
            set { this.SetValue(FinishedPercentageProperty, value); }
        }
        public static readonly DependencyProperty FinishedPercentageProperty = DependencyProperty.Register(
          "FinishedPercentage", typeof(int), typeof(CircularPercentualProgressBar), new PropertyMetadata(0));

        public Boolean ShowPercentage
        {
            get { return (Boolean)this.GetValue(ShowPercentageProperty); }
            set { this.SetValue(ShowPercentageProperty, value); }
        }
        public static readonly DependencyProperty ShowPercentageProperty = DependencyProperty.Register(
          "ShowPercentage", typeof(Boolean), typeof(CircularPercentualProgressBar), new PropertyMetadata(true));

        public CircularPercentualProgressBar()
        {
            InitializeComponent();
        }
    }
}
